home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / DDocData.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  5.9 KB  |  251 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMDataDef.h"
  6.  
  7. class LFileStream;
  8.  
  9.  
  10. const long    idStandard        = 'Stad';
  11. const long    idXx        = 'Xx  ';
  12. const long    idLR        = 'LR  ';
  13. const long    idLR2        = 'LR2 ';
  14. const long    idLR3        = 'LR3 ';
  15. const long    idLR4        = 'LR4 ';
  16. const long    idCheckbox        = 'Chex';
  17. const long    idCheckbox2        = 'Che2';
  18. const long    idNext        = 'Next';
  19. const long    idNext2        = 'Nex2';
  20. const long    idRadioGroup        = 'Radp';
  21. const long    idGroup        = 'Grop';
  22. const long    idGraphic        = 'Grac';
  23. const long    idBevel        = 'Bevl';
  24. const long    idText        = 'Text';
  25. const long    idSmall        = 'Smal';
  26. const long    idLarge        = 'Lare';
  27. const long    idX12345        = 'X145';
  28. const long    idX12345e6        = 'X126';
  29. const long    idPassword        = 'Pasd';
  30. const long    idDate        = 'Date';
  31. const long    idTime        = 'Time';
  32. const long    idStyled        = 'Styd';
  33. const long    idBars        = 'Bars';
  34. const long    idStandard2        = 'Sta2';
  35. const long    idGraphic2        = 'Gra2';
  36. const long    idSlider        = 'Slir';
  37. const long    idTickMarks        = 'Tics';
  38. const long    idNonDirectional        = 'Nonl';
  39. const long    idLittleArrows        = 'Lits';
  40. const long    idSpinner        = 'Spir';
  41. const long    idVolumeControl        = 'Voll';
  42. const long    idJimSSlider        = 'Jimr';
  43. const long    idStandard3        = 'Sta3';
  44. const long    idIndeterminate        = 'Inde';
  45. const long    idChasingArrows        = 'Chas';
  46. const long    idRectangle        = 'Rece';
  47. const long    idRoundRect        = 'Rout';
  48. const long    idBarberPole        = 'Bare';
  49. const long    idRoundBarber        = 'Rour';
  50. const long    idTools        = 'Toos';
  51. const long    idFromValuesList2        = 'Fro2';
  52. const long    idFromMenu        = 'Frou';
  53. const long    idTextList        = 'Tex2';
  54.  
  55.  
  56. //----------
  57. class DDocData : public AMDataDef {
  58. public:
  59.                 DDocData ();
  60.     virtual        ~DDocData ();
  61.  
  62. public:
  63.     void        CopyFrom        (DDocData*        inOther);
  64.     void        ReadFromFile    (LFileStream*        inFile);
  65.     void        WriteToFile        (LFileStream*        inFile);
  66.  
  67. public:        // accessors
  68.     Boolean        GetStandard () const;
  69.     void        SetStandard    (Boolean        inValue);
  70.  
  71.     Boolean        GetXx () const;
  72.     void        SetXx    (Boolean        inValue);
  73.  
  74.     Boolean        GetLR () const;
  75.     void        SetLR    (Boolean        inValue);
  76.  
  77.     Boolean        GetLR2 () const;
  78.     void        SetLR2    (Boolean        inValue);
  79.  
  80.     Boolean        GetLR3 () const;
  81.     void        SetLR3    (Boolean        inValue);
  82.  
  83.     Boolean        GetLR4 () const;
  84.     void        SetLR4    (Boolean        inValue);
  85.  
  86.     Boolean        GetCheckbox () const;
  87.     void        SetCheckbox    (Boolean        inValue);
  88.  
  89.     Boolean        GetCheckbox2 () const;
  90.     void        SetCheckbox2    (Boolean        inValue);
  91.  
  92.     Boolean        GetNext () const;
  93.     void        SetNext    (Boolean        inValue);
  94.  
  95.     Boolean        GetNext2 () const;
  96.     void        SetNext2    (Boolean        inValue);
  97.  
  98.     SInt16        GetRadioGroup () const;
  99.     void        SetRadioGroup    (SInt16        inValue);
  100.  
  101.     SInt16        GetGroup () const;
  102.     void        SetGroup    (SInt16        inValue);
  103.  
  104.     SInt16        GetGraphic () const;
  105.     void        SetGraphic    (SInt16        inValue);
  106.  
  107.     SInt16        GetBevel () const;
  108.     void        SetBevel    (SInt16        inValue);
  109.  
  110.     SInt16        GetText () const;
  111.     void        SetText    (SInt16        inValue);
  112.  
  113.     StringPtr    GetSmall    (Str255        outStr = nil) const;
  114.     void        SetSmall    (ConstStringPtr    inValue);
  115.     void        SetSmall    (CharsHandle    inValue);
  116.  
  117.     StringPtr    GetLarge    (Str255        outStr = nil) const;
  118.     void        SetLarge    (ConstStringPtr    inValue);
  119.     void        SetLarge    (CharsHandle    inValue);
  120.  
  121.     SInt32        GetX12345 () const;
  122.     void        SetX12345    (SInt32        inValue);
  123.  
  124.     double        GetX12345e6 () const;
  125.     void        SetX12345e6    (double        inValue);
  126.  
  127.     StringPtr    GetPassword    (Str255        outStr = nil) const;
  128.     void        SetPassword    (ConstStringPtr    inValue);
  129.     void        SetPassword    (CharsHandle    inValue);
  130.  
  131.     LongDateRec        GetDate () const;
  132.     void        SetDate    (LongDateRec        inValue);
  133.  
  134.     LongDateRec        GetTime () const;
  135.     void        SetTime    (LongDateRec        inValue);
  136.  
  137.     StringPtr    GetStyled    (Str255        outStr = nil) const;
  138.     void        SetStyled    (ConstStringPtr    inValue);
  139.     void        SetStyled    (CharsHandle    inValue);
  140.  
  141.     UInt16        GetBars () const;
  142.     void        SetBars    (UInt16        inValue);
  143.  
  144.     SInt16        GetStandard2 () const;
  145.     void        SetStandard2    (SInt16        inValue);
  146.  
  147.     SInt16        GetGraphic2 () const;
  148.     void        SetGraphic2    (SInt16        inValue);
  149.  
  150.     SInt16        GetSlider () const;
  151.     void        SetSlider    (SInt16        inValue);
  152.  
  153.     SInt16        GetTickMarks () const;
  154.     void        SetTickMarks    (SInt16        inValue);
  155.  
  156.     SInt16        GetNonDirectional () const;
  157.     void        SetNonDirectional    (SInt16        inValue);
  158.  
  159.     SInt16        GetLittleArrows () const;
  160.     void        SetLittleArrows    (SInt16        inValue);
  161.  
  162.     SInt16        GetSpinner () const;
  163.     void        SetSpinner    (SInt16        inValue);
  164.  
  165.     SInt16        GetVolumeControl () const;
  166.     void        SetVolumeControl    (SInt16        inValue);
  167.  
  168.     SInt16        GetJimSSlider () const;
  169.     void        SetJimSSlider    (SInt16        inValue);
  170.  
  171.     SInt16        GetStandard3 () const;
  172.     void        SetStandard3    (SInt16        inValue);
  173.  
  174.     SInt16        GetIndeterminate () const;
  175.     void        SetIndeterminate    (SInt16        inValue);
  176.  
  177.     SInt16        GetChasingArrows () const;
  178.     void        SetChasingArrows    (SInt16        inValue);
  179.  
  180.     SInt16        GetRectangle () const;
  181.     void        SetRectangle    (SInt16        inValue);
  182.  
  183.     SInt16        GetRoundRect () const;
  184.     void        SetRoundRect    (SInt16        inValue);
  185.  
  186.     SInt16        GetBarberPole () const;
  187.     void        SetBarberPole    (SInt16        inValue);
  188.  
  189.     SInt16        GetRoundBarber () const;
  190.     void        SetRoundBarber    (SInt16        inValue);
  191.  
  192.     SInt16        GetTools () const;
  193.     void        SetTools    (SInt16        inValue);
  194.  
  195.     SInt16        GetFromValuesList2 () const;
  196.     void        SetFromValuesList2    (SInt16        inValue);
  197.  
  198.     SInt16        GetFromMenu () const;
  199.     void        SetFromMenu    (SInt16        inValue);
  200.  
  201.     SInt16        GetTextList () const;
  202.     void        SetTextList    (SInt16        inValue);
  203.  
  204.  
  205. protected:
  206.     Boolean        mStandard;
  207.     Boolean        mXx;
  208.     Boolean        mLR;
  209.     Boolean        mLR2;
  210.     Boolean        mLR3;
  211.     Boolean        mLR4;
  212.     Boolean        mCheckbox;
  213.     Boolean        mCheckbox2;
  214.     Boolean        mNext;
  215.     Boolean        mNext2;
  216.     SInt16        mRadioGroup;
  217.     SInt16        mGroup;
  218.     SInt16        mGraphic;
  219.     SInt16        mBevel;
  220.     SInt16        mText;
  221.     Str255        mSmall;
  222.     Str255        mLarge;
  223.     SInt32        mX12345;
  224.     double        mX12345e6;
  225.     Str255        mPassword;
  226.     LongDateRec        mDate;
  227.     LongDateRec        mTime;
  228.     Str255        mStyled;
  229.     UInt16        mBars;
  230.     SInt16        mStandard2;
  231.     SInt16        mGraphic2;
  232.     SInt16        mSlider;
  233.     SInt16        mTickMarks;
  234.     SInt16        mNonDirectional;
  235.     SInt16        mLittleArrows;
  236.     SInt16        mSpinner;
  237.     SInt16        mVolumeControl;
  238.     SInt16        mJimSSlider;
  239.     SInt16        mStandard3;
  240.     SInt16        mIndeterminate;
  241.     SInt16        mChasingArrows;
  242.     SInt16        mRectangle;
  243.     SInt16        mRoundRect;
  244.     SInt16        mBarberPole;
  245.     SInt16        mRoundBarber;
  246.     SInt16        mTools;
  247.     SInt16        mFromValuesList2;
  248.     SInt16        mFromMenu;
  249.     SInt16        mTextList;
  250. };
  251.